#ifndef CONSTANTS_H
#define CONSTANTS_H

#include "log/easylogging++.h"

#endif // CONSTANTS_H

enum class NET_STATE{

};

// info log
#define LOG_INFO LOG(INFO)
// DEBUG log
#define LOG_DEBUG LOG(DEBUG)
// WARNING log
#define LOG_WARN LOG(WARNING)
// ERROR log
#define LOG_ERROR LOG(ERROR)
// FATAL log
#define LOG_FATAL LOG(FATAL)

const QString NET_CONNECTING="正在连接...";
const QString NET_CONNECTED = "连接成功。";
const QString NET_CONNECT_ERROR = "连接错误";
const QString NET_DISCONNECT = "连接断开";

///试验参数
/// ///key
const QString TEST_PARAM_NAME = "param_test";

///value
const QString TEST_PARAM_SELECT = "param_test_select";
const QString TEST_PARAM_CTRL_STYLE = "param_test_ctrl_style";
const QString TEST_PARAM_FREQ = "param_test_freq";
const QString TEST_PARAM_SPEED = "param_test_speed";
const QString TEST_PARAM_NUM = "param_test_num";
const QString TEST_PARAM_RADIS = "param_test_radis";
const QString TEST_PARAM_DOWN = "param_test_down";
const QString TEST_PARAM_UP = "param_test_up";
const QString TEST_PARAM_PRELOAD = "param_test_preload";
const QString TEST_PARAM_LOAD = "param_test_load";
const QString TEST_PARAM_KEEP_LOAD = "param_test_keep_load";
const QString TEST_PARAM_KEEP_TIME = "param_test_keep_time";

/// key
const QString TEST_PARAM_PROTECT = "param_protect";

///value
const QString TEST_PARAM_PROTECT_DIS_UP = "param_protect_displacement_up";
const QString TEST_PARAM_PROTECT_DIS_DOWN = "param_protect_displacement_down";
const QString TEST_PARAM_PROTECT_LOAD_UP = "param_protect_load_up";
const QString TEST_PARAM_PROTECT_LOAD_DOWN = "param_protect_load_down";
